<template>
  <el-card class="box-card">
    <div slot="header" class="clearfix"><span>商品信息</span></div>
    <div>
      <el-collapse v-model="activeNames" >
        <el-collapse-item name="1" title="内容样式">
          <el-form size="medium" label-width="100px">
            <el-form-item label="背景颜色:"><ColorPicker :color="data" :name="'bg'"></ColorPicker></el-form-item>
            <el-form-item label="上间距:">
              <div class="slider_box">
                <el-slider class="slider_item" :max="50" v-model="data.mt"></el-slider>
                <el-input-number v-model="data.mt" :controls="false" :min="0" :max="50"></el-input-number>
              </div>
            </el-form-item>
          </el-form>
        </el-collapse-item>
      </el-collapse>
    </div>
  </el-card>
</template>

<script>
  import ColorPicker from '@/components/ColorPicker/index'
export default {
  props: {
    data: {
      type: Object,
      default: {}
    }
  },
  data() {
    return {
      activeNames: ['1']
    };
  },
  components:{
    ColorPicker
  },
};
</script>

<style></style>
